import redis
from celery_insert_goods_img_to_redis import insert_redis

r = redis.StrictRedis(decode_responses=True)
redis_key = "goods_items_url_list"
if r.llen(redis_key):
    for i in range(r.llen(redis_key)):
        res = insert_redis.delay()
        print(res.get())
